<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/3/29 0029
 * Time: 14:05
 */

namespace app\admin\model;


use think\Model;

class Banner extends Model
{
    public static function getBannerList(){
        $banner=Banner::select();
        return $banner;
    }

    public static function addBanner($data)
    {

        $addbanner=new Banner();
        try{
            $res=$addbanner->save($data);
            $msg='成功';
        }catch (\Exception $e){
            $res=false;
            $msg=$e->getMessage();
        }
        return[$res,$msg];
    }


}